# 学习使用按位与 & 。

#!/usr/bin/python
# -*- coding: UTF-8 -*-

if __name__ == '__main__':
    a = int(0o77)
    b = a & 3
    print ('a & b = %d' % b)
    b &= 7
    print ('a & b = %d' % b)